﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
using Windows.Networking.Sockets;

namespace USpell.Help.Net
{
    class TCPHelp
    {
        Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        //StreamSocketListener listener = new StreamSocketListener(); 

        public TCPHelp()
        {
            IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, 13001);

            // Create a TCP/IP socket. 
            Socket listener = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);

            // Bind the socket to the local endpoint and listen for incoming connections. 
            try
            {
                listener.Bind(localEndPoint);
                listener.Listen(10);

            }
            catch
            {

            }
        }
    }
}
